package com.zmx.job.admin.controller;

import com.zmx.core.dto.RequestLogInfo;
import com.zmx.job.admin.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description: 客户端实例控制器
 * @ClassName: LogInfoController
 * @Author zhaomxr
 * @Date 2021-12-24 14:10
 */
@RestController
@RequestMapping("logInfo")
public class LogInfoController {

    @Autowired
    private LogInfoService logInfoService;

    @GetMapping
    public RequestLogInfo getLog(@RequestParam(required = true) String name, @RequestParam(required = false) String pointer) {
        RequestLogInfo result = logInfoService.getLog(name, pointer);
        return result;
    }
}
